package com.mx.project.services;

import com.mx.project.pojo.User;
import com.mx.project.vo.UserInfo;

import java.io.File;

public interface UserService {
    User findUserByUid(Integer uid);

    int addUser(User user);

    User findUserByUserInfo(User user);

    User findUserByUsername(String username);

    User findUserByEmail(String email);

    User findUserByPhone(String phone);

    User checkPassword(String username, String password);

    int updateUserInfo(User user);

    boolean uploadNativeAvatar(File f);

    UserInfo findUserInfoByUid(int uid);

    int updateAvatarByUid(Integer uid, String avatar);
}
